<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>提交</button>
    <script>
        ele.onblur =()=>{
            const value = ele.value
            $.ajax({
                type:'get',
                url:'http://localhost:3000/name',
                date : { name:value },
                success: (result)=>{
                    let massage = '成功'
                    if(result.status === 'failed'){
                        massage = result.massage
                    }
                }
            })
        }
    </script>
</body>
</html>